  var codeAreaObject;//initial a space for getting code area object 
    $(function() { 
	
	
        $.ajax({ 
            url : "../rest/config/xmlConfigData", 
            dataType : "text", 
            type : "get", 
            success : function(data) {
                codeAreaObject = $("#configData").codeArea(data); 
            } 
        }); 
 
        $("#edit").on("click", function() { 
            codeAreaObject.edit(); 
        }); 
 
        $("#save").on("click", function() { 
            codeAreaObject.save(); 
            /// to do add save function here
            codeAreaObject.data;
            var sendData={"xmlData":codeAreaObject.data};
           $.ajax(
            {
           	url: "../rest/config/SaveXmlData",
           	dataType:"test",
           	data: sendData,
          	type:"post",
            	
            }		
            
           )
            
            
            
            
            
        }); 
        
    }); 